<template>
    <div id="yuqingcontent">
        <div class="content-ct">一、基本口径要点<br></div>
        <div v-if="Object.keys(onetypeinfo).length!==0" >
            <div v-for="(item,index) in onetypeinfo" :key="index" class="content-ct-ct">
                <br>
                <div class="content-lct">{{item.type }}.{{item.idx}} {{item.title}}<br></div>
                <br>
                <div class="content-info" v-html="$options.filters.br2p(item.content)"></div>
            </div>
        </div>
        <div v-else class="none">无对应检索结果</div>


    </div>
</template>

<script>
    export default {
        name: "yuqingcontent",
        props:{
            onetypeinfo:{
                type:Array,
                default() {
                    return [];
                }
            }
        },
        filters:{
            br2p(value){
                return  "&emsp;&emsp;" + value.replace(new RegExp("<br>","g"),"<br>&emsp;&emsp;")
            },
            getChinesenum(value){
                switch (value) {
                    case 1:
                        return '一'
                    case 2:
                        return '二'
                    case 3:
                        return'三'
                    case 4:
                        return'四'
                    case 5:
                        return'五'
                    case 6:
                        return'六'
                    case 7:
                        return'七'
                    case 8:
                        return'八'
                    case 9:
                        return'九'
                    case 10:
                        return'十'

                }
            }
        },
    }
</script>

<style scoped>
    #yuqingcontent{
        margin: 5px;
        padding: 5px;
        font-family: FangSong;
    }



    .content-info >>> b{
        color:red;
    }

    .content-info >>>strong{
        color:greenyellow;
        background-color: #333333;
    }

    .content-info{
        line-height: 2;
    }


    .content-ct{
        font-size: 0.1rem;
        font-weight: bold;
        font-family: FangSong;

    }

    .content-ct-ct{
        font-family: FangSong;
    }

    .content-lct{
        font-size: 0.095rem;
    }



</style>